<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>
 
 <div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
    <?php if (! $this->_var['site']['logo']): ?>
        <?php $this->assign("s",M("sites")->selectRow(array("where"=>" status=1 " ,"order"=>"siteid ASC"))); ?>
        <?php endif; ?>	
      <div class="logobox"><img src="<?php if ($this->_var['site']['logo']): ?><?php echo $this->_var['site']['logo']; ?><?php else: ?><?php echo $this->_var['s']['logo']; ?><?php endif; ?>"></div>
      <div class="icosearch"><a href="/index.php?m=sites"><i class="ico"></i><?php echo $this->_var['site']['sitename']; ?></a></div>
    </div>
    <section class="ind_section">
      <div class="ind_banner">
        <div class="flexslider">
        	<?php $this->assign("ad1",M("ad")->listbyno("wap_index_flash")); ?>
          <ul class="slides clearfix">
          <?php $_from = $this->_var['ad1']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
            <li><a href="<?php echo $this->_var['c']['link1']; ?>"><img class="img lazy" src="<?php echo $this->_var['preimage_banner']; ?>"  url="<?php echo images_site($this->_var['c']['imgurl']); ?>"></a> </li>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  
           
          </ul>
        </div>
      </div>
      <div class="ind_subnav">
        <ul class="list">
        <?php $this->assign("nv",M("navbar")->navlist(3)); ?>
        <?php $_from = $this->_var['nv']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
          <li><a href="<?php echo $this->_var['c']['link_url']; ?>"><img class="img" src="<?php echo images_site($this->_var['c']['logo']); ?>"><br>
            <?php echo $this->_var['c']['title']; ?></a></li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>    
          
        </ul>
      </div>
    </section>
    <table class="inc_table">
    <?php $this->assign("ad2",M("ad")->listbyno("wap_index_xz2")); ?>
    <?php $this->assign("ad3",M("ad")->listbyno("wap_index_xy1")); ?>
    <?php if ($this->_var['ad2']): ?>
      <tr>
        <td width="50%"><a href="<?php echo $this->_var['ad2']['0']['link1']; ?>"><img class="lazy" src="<?php echo $this->_var['preimage_banner']; ?>" url="<?php echo images_site($this->_var['ad2']['0']['imgurl']); ?>"></a></td>
        <td rowspan="2" width="50%"><p style="padding-left:4px;"><a href="<?php echo $this->_var['ad3']['0']['link1']; ?>"><img class="lazy" src="<?php echo $this->_var['preimage_banner']; ?>" url="<?php echo images_site($this->_var['ad3']['0']['imgurl']); ?>"></a></p></td>
      </tr>
      <tr>
        <td><a href="<?php echo $this->_var['ad2']['1']['link1']; ?>"><img class="lazy" src="<?php echo $this->_var['preimage_banner']; ?>" url="<?php echo images_site($this->_var['ad2']['1']['imgurl']); ?>"></a></td>
      </tr>
      <?php endif; ?>
    </table>
  </div>
</div>
 

<script>
 
  $(function(){
	 imgLazy("body");
	  
	  
	 
	 loadjs(basejs,function(){
		 $(".flexslider").flexslider();
	 }) 
  });
  </script>
  <?php $this->assign('botnav','index'); ?>
 <?php echo $this->fetch('botnav.html'); ?>
 <?php echo $this->fetch('footer.html'); ?> 
  
</body>
</html>
